package com.kksoft.readcm.b;

import java.util.concurrent.atomic.AtomicBoolean;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public final class g extends i
{
  public g(h paramh, String paramString1, String paramString2)
  {
    super(paramh, paramString1, paramString2, null);
  }

  protected final void a()
  {
    a(1, null);
    a(2, null);
    b(1, null);
    b(2, null);
    Pattern localPattern1 = Pattern.compile("([\\s\\\"\\'](?:background|src)=[\\\"\\'])(https?:[^\\\"\\']*)([\\\"\\'])", 2);
    Pattern localPattern2 = Pattern.compile("(youtube)\\.", 2);
    Pattern localPattern3 = Pattern.compile("^http://player\\.vimeo\\.com.*$", 2);
    String str1 = this.c;
    Matcher localMatcher1 = localPattern1.matcher(str1);
    StringBuffer localStringBuffer1 = new StringBuffer();
    if ((!localMatcher1.find()) || (this.q.get()))
    {
      StringBuffer localStringBuffer2 = localMatcher1.appendTail(localStringBuffer1);
      String str2 = localStringBuffer1.toString();
      this.c = str2;
      h localh = this.b;
      String str3 = this.c;
      localh.a(str3);
      return;
    }
    String str4 = localMatcher1.group(1);
    String str5 = localMatcher1.group(2);
    String str6 = localMatcher1.group(3);
    Matcher localMatcher2 = localPattern3.matcher(str5);
    Matcher localMatcher3 = localPattern2.matcher(str5);
    if (localMatcher2.find())
      str5 = "file:///android_asset/video.html#" + str5;
    while (true)
    {
      String str7 = String.valueOf(str4);
      String str8 = str7 + str5 + str6;
      Matcher localMatcher4 = localMatcher1.appendReplacement(localStringBuffer1, str8);
      break;
//      if (localMatcher3.find())
//        continue;
//      str5 = "";
    }
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.b.g
 * JD-Core Version:    0.6.0
 */